<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <!--以最新的IE浏览器引擎去渲染-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!--如果是双核浏览器，则使用webkit内核渲染-->
    <meta name="renderer" content="webkit"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title></title>
    <meta name="description" content=""/>
    <meta name="keyword" content=""/>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
    <link rel="stylesheet" href="__PUBLIC__/frame/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/frame/static/css/style.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_816113_2yyzilu1xq.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery1.12.4.js"></script>
    <script type="text/javascript" src="__PUBLIC__/frame/layui/layui.js"></script>
    <link rel="icon" href="__PUBLIC__/frame/static/image/code.png">
</head>
<body>
<!--[if lte 8]>
<script type="text/javascript">
    window.alert("您的浏览器版本过低");
    window.location.href = "http://www.browsehappy.com";
</script>
<![endif]-->
<div class="layui-fluid">
    小区名称:<span>帅府小区</span>
    <img src="" width="100%" alt="">
</div>

</body>
</html>

<script type="text/javascript">
    //获取小区id
    var xiaoquid = $(window.parent.document.getElementsByTagName('iframe')[0]).attr('xiaoquid');
    var pic = $(window.parent.document.getElementsByTagName('iframe')[0]).attr('pic');
    $('img').attr('src','__PUBLIC__/imgages/'+pic);
    //通过小区id获取小区信息
    $.post("/index.php/home/map/xiaoquData", {xiaoquid: xiaoquid},
        function (data) {
            var result = data.data;
            $('span').text(result.name);
        },
    "JSON");
</script>